package com.chat.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.ConcurrentHashMap;

public class LockUtil {
    private LockUtil(){}
    private static Map<String,BlockingDeque<Integer>> map;

    static {
        map=new ConcurrentHashMap<>();
    }

    public static Map<String,BlockingDeque<Integer>> getMap(){
        return map;
    }
}
